//
//  HLRecordModel.m
//  YueYue
//
//  Created by hulu001 on 2023/6/15.
//

#import "HLRecordModel.h"

@implementation HLRecordModel

- (NSString *)timeStringFromSeconds:(NSInteger)seconds {
    NSInteger hours = seconds / 3600;
    NSInteger minutes = (seconds % 3600) / 60;
    NSInteger secs = seconds % 60;

    return [NSString stringWithFormat:@"%02ld:%02ld:%02ld", (long)hours, minutes, secs];
}

- (NSString *)durationStr
{
    if (!_durationStr) {
        _durationStr = [self timeStringFromSeconds:_duration.integerValue];
    }
    return _durationStr;
}

@end
